"""
列表生成式
"""
l0 = list(range(1,100))
print(l0)
l1 = [x * x for x in range(1, 11)]
print(l1)
l2 = [x * x for x in range(1, 11) if x % 2 == 0]
print(l2)
l3 = [m + n for m in 'ABC' for n in 'XYZ']
print(l3)
